/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *
 * @author: jin Chen 
 * @date: Mar 23, 2006$
 * @version: 1.0
 */
package edu.psu.geovista.app.pcp.plot.gui;

import java.util.Arrays;

public class Test {
   public void test(int [] a1, int[] a2){
       Arrays.sort(a1);
       Arrays.sort(a2);
       int[] result=new int[a1.length ];
       int count=0;
       for (int i=0;i<a1.length ;i++){

           for (int j=0;j<a2.length ;j++){
              if (a1[i]==a2[j]){
                 result[count++]=a1[i] ;
              }
           }
       }
       // System.arraycopy();


   }

}
